package org.dromara.agriculture.domain.bo;

import org.dromara.agriculture.domain.AgricultureCostMachine;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 机械工时业务对象 agriculture_cost_machine
 *
 * @author Robin
 * @date 2024-12-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AgricultureCostMachine.class, reverseConvertGenerate = false)
public class AgricultureCostMachineBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long costId;

    /**
     * 任务ID
     */
    @NotNull(message = "任务ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long taskId;

    /**
     * 机械ID
     */
    @NotNull(message = "机械ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long machineId;

    /**
     * 机械数量
     */
    @NotNull(message = "机械数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long machineCount;

    /**
     * 工时
     */
    @NotNull(message = "工时不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long workingHours;

    /**
     * 开始日期
     */
    @NotBlank(message = "开始日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private String workingStart;

    /**
     * 结束日期
     */
    @NotBlank(message = "结束日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private String workingFinish;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderNum;


}
